package com.yanjiali;

import com.yanjiali.properties.JwtProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Package: com.yanjiali
 * @Author: yanjiali
 * @Created: 2025/3/27 19:23
 * 网关服务启动类
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableConfigurationProperties(JwtProperties.class)
public class GetwayApplication {
    public static void main(String[] args) {
        System.setProperty("csp.sentinel.app.type", "1");   //TODO 参数设置，使得sentinel控制台显示正确 参考地址：https://blog.csdn.net/m0_45406092/article/details/120386450
        SpringApplication.run(GetwayApplication.class, args);
    }
}
